﻿<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <div unvs-template="master/hubpage.html">
        <div container="leftSideBar">
            <div ng-repeat="p in list" style="display:-ms-grid;-ms-grid-columns:80px 1fr;margin:10px;height:100px;-ms-grid-rows:1fr" ng-click="loadDetail();">
                <div style="-ms-grid-column:1;-ms-grid-row:1;background-color:red">

                </div>
                <div style="-ms-grid-column:2;-ms-grid-row:1;background-color:blue">
                    <span>
                        {{p.text}}
                    </span>
                </div>
            </div>
        </div>
        <div container="body">
           
        </div>
    </div>
    <script>
        var scope = this;
        scope.list = [];
        for (var i = 0; i < 20; i++) {
            scope.list.push({
                text:"this is the test {"+i+"}"
            })
        }
        scope.loadDetail = function () {
            scope.$root.$path = "detail.html";
            scope.$root.$apply();
        }
    </script>
</body>
</html>